<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>ERP</title>
		<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css"/>

	</head>
	<body class="layui-layout-body default" style="margin-top: 20px;">
<form class="layui-form" lay-filter="tpl_attr" action="{:url('attr/saveData')}">
	<input type="hidden" name="category_sign" value="{$category_sign}" class="layui-input" />
	<div class="layui-form-item">
		<label class="layui-form-label">属性名称</label>
		<div class="layui-input-inline">
			<input type="text" name="attr_name" lay-verify="required" placeholder="请输入属性名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">属性分组</label>
		<div class="layui-input-inline">
			<input type="text" name="group_name" placeholder="请输入属性分组" autocomplete="off" class="layui-input">
			<div class="layui-form-mid layui-word-aux">如：“基础属性”，“技术参数”</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">是否必填</label>
		<div class="layui-input-inline">
			<input type="checkbox" name="is_must" title="必填" value="1">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">快速上架是否必填</label>
		<div class="layui-input-inline">
			<input type="checkbox" name="fast_is_must" title="必填" value="1">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">数据类型</label>
		<div class="layui-input-inline">
			<select name="value_type" lay-search>
				<option value="1">输入</option>
				<option value="2">选择</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">选择类型</label>
		<div class="layui-input-inline">
			<select name="select_type" lay-search>
				<option value="1">单项选择</option>
				<option value="2">多项选择</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">数值</label>
		<div class="layui-input-inline" style="width:600px">
			<input type="text" name="value_item" class="layui-input" placeholder="请输入数值">
			<div class="layui-form-mid layui-word-aux">选择“输入”：这里是默认值，选择“选择”：这里是供选择的值（用英文,分割）</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">单位</label>
		<div class="layui-input-inline" style="width:200px">
			<input type="text" name="unit" class="layui-input" placeholder="请输入单位"><div class="layui-form-mid layui-word-aux">没有不填</div>
		</div>
	</div>
	
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_attr">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var attr_id = "{$attr_id}";
</script>


<script src="/static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/js/category/attr/attr_tpl.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>